home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7739 / text0000.txt < prev   
Encoding:
Text File  |  1996-08-05  |  1007 b   |  30 lines

  1. In a message of 18 Apr 96, Yvon wrote to :
  2.  
  3.  YR> Use the ICA_TARGET,ICTARGET_IDCMP tag on both gadgets and listen for
  4.  YR> IDCMP_IDCMPUPDATE messages. msg->IAddress points to the gadget.
  5.  
  6. Really? IAddress doesn't refer to the gadget at least. Isn't it supposed to
  7. point to a taglist?
  8.  
  9. [Later...]
  10.  
  11. Yep, seems to be a taglist with the GA_ID, and the new attributes, in HSB
  12. format.
  13.  
  14. I've also managed to get things working properly. However, it turned out to
  15. be easier to not use this tag list. Then I don't need to keep track of
  16. current values. I simply ask the wheel for them. ;)
  17.  
  18.  YR> Yes, assuming you have coupled them by using the WHEEL_GradientSlider
  19.  YR> tag, you can GetAttr() WHEEL_HSB from the colorwheel gadget. Don't try
  20.  YR> to get WHEEL_RGB because that won't work properly. Use
  21.  YR> ConvertHSBToRGB() afterwards if you need RGB values.
  22.  
  23. Ok, thanks for your help. But what is the problem with WHEEL_RGB? It seems
  24. to work just fine here...
  25.  
  26. --
  27. Magnus Holmgren - Amiga programmer and enthusiast
  28.  
  29.  
  30.